{ "cells": [ { "cell_type": "markdown", "id": "cognitive-production", "metadata": {}, "source": [ "# More Forex Analysis" ] }, { "cell_type": "code", "execution_count": 1, "id": "median-cowboy", "metadata": {}, "outputs": [], "source": [ "import hotstepper as hs\n", "import pandas as pd\n", "import numpy as np\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "markdown", "id": "necessary-hands", "metadata": {}, "source": [ "Get some data from the trusty hotstepper-data repository" ] }, { "cell_type": "code", "execution_count": 2, "id": "resistant-fishing", "metadata": {}, "outputs": [], "source": [ "df_gbpaud = pd.read_csv('https://raw.githubusercontent.com/TangleSpace/hotstepper-data/master/data/forex/GBPAUD_H1.csv',delimiter='\\t',parse_dates=['Time'])\n", "df_audusd = pd.read_csv('https://raw.githubusercontent.com/TangleSpace/hotstepper-data/master/data/forex/AUDUSD_H1.csv',delimiter='\\t',parse_dates=['Time'])\n", "df_gbpusd = pd.read_csv('https://raw.githubusercontent.com/TangleSpace/hotstepper-data/master/data/forex/GBPUSD_H1.csv',delimiter='\\t',parse_dates=['Time'])\n" ] }, { "cell_type": "code", "execution_count": 3, "id": "fundamental-compression", "metadata": {}, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ " Time Open High Low Close Volume\n", "0 2013-01-28 10:00:00 1.57474 1.57475 1.57243 1.57243 8337\n", "1 2013-01-28 11:00:00 1.57245 1.57263 1.57050 1.57050 8119\n", "2 2013-01-28 12:00:00 1.57049 1.57329 1.57049 1.57257 11026\n", "3 2013-01-28 13:00:00 1.57256 1.57389 1.57102 1.57366 11717\n", "4 2013-01-28 14:00:00 1.57366 1.57431 1.57133 1.57171 11911" ], "text/html": "
| \n | Time | \nOpen | \nHigh | \nLow | \nClose | \nVolume | \n
|---|---|---|---|---|---|---|
| 0 | \n2013-01-28 10:00:00 | \n1.57474 | \n1.57475 | \n1.57243 | \n1.57243 | \n8337 | \n
| 1 | \n2013-01-28 11:00:00 | \n1.57245 | \n1.57263 | \n1.57050 | \n1.57050 | \n8119 | \n
| 2 | \n2013-01-28 12:00:00 | \n1.57049 | \n1.57329 | \n1.57049 | \n1.57257 | \n11026 | \n
| 3 | \n2013-01-28 13:00:00 | \n1.57256 | \n1.57389 | \n1.57102 | \n1.57366 | \n11717 | \n
| 4 | \n2013-01-28 14:00:00 | \n1.57366 | \n1.57431 | \n1.57133 | \n1.57171 | \n11911 | \n